﻿using System.Collections;
using UnityEditor;
using System.IO;

public class CreateAB
{
    [MenuItem("Assets/CreateAssetBundle")]
    public static void CreateAssetBundles()
    {
        string path = "Assets/AssetBundles";
        if (!Directory.Exists(path))
        {
            Directory.CreateDirectory(path);
        }
        BuildPipeline.BuildAssetBundles("Assets/AssetBundles", BuildAssetBundleOptions.None, BuildTarget.StandaloneWindows64);
    }
}
